﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;

namespace AdminModule.IndexMarkServiceReference
{
    public partial class AdmPerson
    {
        public override int GetKey()
        {
            return this.IDPerson;
        }

        public override Type GetObjType()
        {
            return this.GetType();
        }

        public string EMailForEdit
        {
            get
            {
                return this.EMail;
            }
            set
            {
                if (string.IsNullOrEmpty(value.Trim()))
                    this.EMail = null;
                else
                    this.EMail = value;
            }
        }

        public override string ToString()
        {
            return string.Format("{0} {1} {2}", LastName, FirstName, Patronymic);
        }
    }
}
